local rolely_yapo = fk.CreateSkill {
    name = "rolely_yapo",
    tags = { Skill.Compulsory }
}
Fk:loadTranslationTable {
    ["rolely_yapo"] = "压迫",
    [":rolely_yapo"] = "锁定技，每轮开始时，你失去两点体力，对一名角色造成一点伤害，若有角色因此死亡，你增加一点体力上限，摸其体力上限等量的牌，然后失去此技能。",

     ["$rolely_yapo1"] = "横行天下，暴凌诸侯，无他唯强也！",
      ["$rolely_yapo2"] = " 天下倒悬，能定倾者，唯卓耳！",
}
rolely_yapo:addEffect(fk.RoundStart, {
    can_trigger = function(self, event, target, player, data)
        return player:hasSkill(rolely_yapo.name)
    end,
    on_cost = function(self, event, target, player, data)
        local room = player.room
        local tos = room:askToChoosePlayers(player, {
            skill_name = rolely_yapo.name,
            min_num = 1,
            max_num = 1,
            targets = room:getOtherPlayers(player, false),
            prompt = "压迫：选择一名角色，对其造成一点伤害",
            cancelable = false,
        })
        if #tos > 0 then
            event:setCostData(self, { tos = tos })
            return true
        end
    end,
    on_use = function(self, event, target, player, data)
        local room = player.room
        local to = event:getCostData(self).tos[1]
        room:loseHp(player, 2, rolely_yapo.name)
        room:damage({
            from = player,
            to = to,
            damage = 1,
            skillName = rolely_yapo.name
        })
        if to.dead then
            room:changeMaxHp(player, 1)
            player:drawCards(to.maxHp, rolely_yapo.name)
            player.room:handleAddLoseSkills(player, "-rolely_yapo")
        end
    end,
})

return rolely_yapo
